package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "cinema")
@Accessors(chain = true)
public class Cinema implements Serializable {
    /**
     * 影院id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 影院名
     */
    @TableField(value = "cinema_name")
    private String cinemaName;

    /**
     * 品牌id
     */
    @TableField(value = "brand_id")
    private Integer brandId;

    /**
     * 影院图片
     */
    @TableField(value = "brand_pic")
    private String brandPic;

    /**
     * 商圈id
     */
    @TableField(value = "mall_id")
    private Integer mallId;

    /**
     * 详细地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 影院介绍
     */
    @TableField(value = "introduce")
    private String introduce;

    /**
     * 营业时间
     */
    @TableField(value = "business_time")
    private Date businessTime;

    /**
     * 歇业时间
     */
    @TableField(value = "closing_time")
    private Date closingTime;

    /**
     * 影院创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 添加时间
     */
    @TableField(value = "insert_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date insertTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8" )
    private Date updateTime;

    /**
     * 添加人id
     */
    @TableField(value = "insert_admin_id")
    private Integer insertAdminId;

    /**
     * 修改人id
     */
    @TableField(value = "update_admin_id")
    private Integer updateAdminId;

    /**
     * 点赞数
     */
    @TableField(value = "upvote")
    private Integer upvote;

    /**
     * 影院状态（歇业，停业，营业）
     */
    @TableField(value = "state")
    private String state;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_CINEMA_NAME = "cinema_name";

    public static final String COL_BRAND_ID = "brand_id";

    public static final String COL_BRAND_PIC = "brand_pic";

    public static final String COL_MALL_ID = "mall_id";

    public static final String COL_ADDRESS = "address";

    public static final String COL_INTRODUCE = "introduce";

    public static final String COL_BUSINESS_TIME = "business_time";

    public static final String COL_CLOSING_TIME = "closing_time";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_INSERT_ADMIN_ID = "insert_admin_id";

    public static final String COL_UPDATE_ADMIN_ID = "update_admin_id";

    public static final String COL_UPVOTE = "upvote";

    public static final String COL_STATE = "state";

    public static final String COL_SORT = "sort";

    public static final String COL_ENABLE = "enable";
}